package com.shiro.maper;

import com.shiro.pojo.User;
import com.shiro.pojo.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where  ur_name=#{urName} and ur_password=#{urPassword}")
    public User findUser(User user);

    @Select("select *  from user where  username=#{username} and password=#{password}")
    UserBean findByUsernamaPassword(String username, String password);
}
